<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <!-- 页面点击小红心 -->
  <script type="text/javascript" src="/js/clicklove.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/pjax@0.2.8/pjax.js"></script> 

  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.1.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/blog/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/blog/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/blog/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/blog/images/logo.svg" color="#222">

<link rel="stylesheet" href="/blog/css/main.css">


<link rel="stylesheet" href="/blog/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"linzhuangrong.gitee.io","root":"/blog/","scheme":"Gemini","version":"7.8.0","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

  <meta name="description" content="日常运维中CPU Load高、IO高">
<meta property="og:type" content="article">
<meta property="og:title" content="日常运维中CPU Load高、IO高">
<meta property="og:url" content="https://linzhuangrong.gitee.io/blog/2019/08/15/%E6%97%A5%E5%B8%B8%E8%BF%90%E7%BB%B4%E4%B8%ADCPU%20Load%E9%AB%98%E3%80%81IO%E9%AB%98%E3%80%81%E5%88%A9%E7%94%A8%E7%8E%87%E9%AB%98%E3%80%81%E5%86%85%E5%AD%98%E9%AB%98%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88/index.html">
<meta property="og:site_name" content="Rong的博客">
<meta property="og:description" content="日常运维中CPU Load高、IO高">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2019-08-14T16:00:00.000Z">
<meta property="article:modified_time" content="2020-08-31T14:07:37.178Z">
<meta property="article:author" content="林壮荣">
<meta property="article:tag" content="linux">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://linzhuangrong.gitee.io/blog/2019/08/15/%E6%97%A5%E5%B8%B8%E8%BF%90%E7%BB%B4%E4%B8%ADCPU%20Load%E9%AB%98%E3%80%81IO%E9%AB%98%E3%80%81%E5%88%A9%E7%94%A8%E7%8E%87%E9%AB%98%E3%80%81%E5%86%85%E5%AD%98%E9%AB%98%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>日常运维中CPU Load高、IO高 | Rong的博客</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/blog/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Rong的博客</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/blog/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/blog/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/blog/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://linzhuangrong.gitee.io/blog/2019/08/15/%E6%97%A5%E5%B8%B8%E8%BF%90%E7%BB%B4%E4%B8%ADCPU%20Load%E9%AB%98%E3%80%81IO%E9%AB%98%E3%80%81%E5%88%A9%E7%94%A8%E7%8E%87%E9%AB%98%E3%80%81%E5%86%85%E5%AD%98%E9%AB%98%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/blog/images/avatar.gif">
      <meta itemprop="name" content="林壮荣">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Rong的博客">
    </span>
      <header class="post-header">
	  
        <h1 class="post-title" itemprop="name headline">
          日常运维中CPU Load高、IO高
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2019-08-15 00:00:00" itemprop="dateCreated datePublished" datetime="2019-08-15T00:00:00+08:00">2019-08-15</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-08-31 22:07:37" itemprop="dateModified" datetime="2020-08-31T22:07:37+08:00">2020-08-31</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/Linux/" itemprop="url" rel="index"><span itemprop="name">Linux</span></a>
                </span>
                  ，
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/Linux/%E5%91%BD%E4%BB%A4%E5%B7%A5%E5%85%B7/" itemprop="url" rel="index"><span itemprop="name">命令工具</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span id="busuanzi_value_page_pv"></span>
            </span>
            <div class="post-description">日常运维中CPU Load高、IO高</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <pre><code>日常运维中CPU Load高、IO高、利用率高、内存高等都是怎么处理的，思路是什么，本章简单记录下。</code></pre>
<p>Linux/Unix - 平时Linux/Unix常见的各种负载都是怎么处理的？</p>
<p>认为一般情况下都会是哪几种情况造成的呢？</p>
<p>比如：</p>
<pre><code>服务器硬件的因素，比如机房温度、CPU温度、配置等方面；
服务器进程，比如安装了一些服务进程、程序进程等，这些都是吃CPU资源；
比如Java程序，吃内存大户，最好是程序上进程控制最大使用多少内存；
木马病毒，僵死进程等导致CPU利用率高；
数据库层面，一些复杂的SQL语言、连表查、子查询、全面扫描、慢查询等；
磁盘IO方面比如某进程疯狂的向磁盘写入，导致整个磁盘IO高 进入wait状态的；</code></pre>
<p>一般情况下，我们正常的运维场景中，现在中小型企业服务器基本上都会是云机房；</p>
<p>大厂/金融行业除外哈，大厂/金融据了解基本上都是自建机房，正规的机房里面，服务器的基础设施，温度等是完全不用担心的(机房划水过一年的小菜鸟)</p>
<p>除去了底层硬件，木马病毒的可能性也不大，云上的机器一般都会有一些安全措施，VPC、安全组、基础防护等，但是也不排除被入侵，具体还是要根据实际情况看，</p>
<p>另外就是我们运维中接触最多的，服务器应用程序进程，比如运维的一些基础服务，nginx mysql php，还有一些程序所提供的一些应用进程，也不排除程序出现问题导致CPU高<br>CPU利用率过高</p>
<p>模拟CPU利用率高</p>
<p>我这里模拟是用lookbusy模拟的，也可直接使用 单核CPU使用cat /dev/urandom | gzip -9 &gt; /dev/null,多核心使用cat /dev/urandom | gzip -9 | gzip -d | gzip -9 | gzip -d &gt; /dev/null</p>
<p>这里简单模拟下CPU百分之50，怎么处理的，其实单CPU高还是很好定位问题的，一些常见的命令即可，比如：top top -H -p pid</p>
<p>top</p>
<p>这里通过top可以看到lookbusy这个四个进程占用CPU很高，并且可以看到我4Core的CPU刚好被这四个进程跑满，接下来我们可以使用top -H -p pid具体看下这个进程有多少线程；</p>
<p>top -H -p 7399</p>
<p>如果一个进程里面有多个线程的话，看下哪个线程比较高，单独处理那一个线程即可，如果没有多线程，就直接根据进程ID查出来对应的文件所在位置，确定是木马病毒还是程序文件，再进行下一步判断。</p>
<p>磁盘IO高怎么办</p>
<p>模拟磁盘IO</p>
<p>dd if=/dev/zero of=loadfile bs=1M count=1024<br>for i in {1..100}; do \cp loadfile loadfile1; done</p>
<p>模拟后top查看</p>
<pre><code>us：用户态使用的cpu时间比
sy：系统态使用的cpu时间比
ni：用做nice加权的进程分配的用户态cpu时间比
id：空闲的cpu时间比
wa：cpu等待磁盘写入完成时间
hi：硬中断消耗时间
si：软中断消耗时间
st：虚拟机偷取时间</code></pre>
<p>上图可以看到，CPU利用率低，Load已经开始增高了</p>
<p>如果发现一个机器wa过高，一般情况下都是IO高导致的</p>
<p>使用iostat查看</p>
<pre><code>rsec/s：每秒读取的扇区数；
wsec/：每秒写入的扇区数。
rMB/s：每秒中设备读取大小
wMB/s：每秒中设备写入大小
avgrq-sz 平均请求扇区的大小
avgqu-sz 是平均请求队列的长度。毫无疑问，队列长度越短越好。
await： 每一个IO请求的处理的平均时间（单位是微秒毫秒）。这里可以理解为IO的响应时间，一般地系统IO响应时间应该低于5ms，如果大于10ms就比较大了。
%util： 在统计时间内所有处理IO时间，除以总共统计时间。例如，如果统计间隔1秒，该设备有0.8秒在处理IO，而0.2秒闲置，那么该设备的%util = 0.8/1 = 80%， 所以该参数暗示了设备的繁忙程度,一般地，如果该参数是100%表示设备已经接近满负荷运行了,当然如果是多磁盘，即使%util是100%，因为磁盘的并发能力，所以磁盘使用未必就到了瓶颈</code></pre>
<p>[root@Yangxiaofei ~]# iostat -d -x -m 1 10<br>Linux 3.10.0-862.el7.x86_64 (Yangxiaofei)     Thursday, July 04, 2019     _x86_64_    (6 CPU)</p>
<p>Device:         rrqm/s   wrqm/s     r/s     w/s    rMB/s    wMB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util<br>sda               0.00     0.00    0.00    5.00     0.00     0.02     8.60     1.37  139.20    0.00  139.20 114.60  57.30<br>sdb               0.00     0.00    0.00  880.00     0.00   439.50  1022.84    97.51  104.36    0.00  104.36   0.81  71.00<br>dm-0              0.00     0.00    0.00  944.00     0.00   468.44  1016.27    99.45   98.56    0.00   98.56   0.76  72.00<br>dm-1              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00<br>dm-2              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00<br>dm-4              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00<br>dm-3              0.00     0.00    0.00    0.00     0.00     0.00     0.00     0.00    0.00    0.00    0.00   0.00   0.00</p>
<p>具体查看哪个进程占用的IO高，可以通过iotop命令查看哪个进程占用比较高，下图TID对应的就是top, ps aux里面的PID<br>CPU Load过高</p>
<p>一般情况下也会遇到CPU load average过高，但是CPU使用率不高，TOP里面看到load average分别是 1分钟、5分钟、15分钟；</p>
<p>load average怎么理解，举个例子，一条高速公路上有三个收费口，这时候正好有三辆车，这样子三个窗口都能及时处理，就不用等待，当车辆超过3，那就是需要等待，进入排队，从而引起Load过高；</p>
<p>比如上示例，我模拟了一个IO高，wait处理等待状态，可以看到1分钟的负载已经高了上去了，如图：</p>
<p>遇到这种情况一般查看</p>
<pre><code>top查看哪个进程占用CPU高，排除进程引发的问题
iotop查看是不是某个进行正在大量的操作磁盘IO，这时候如果有几十M/几百M每秒的要注意了
mysql看是否是Mysql引起的，比如一些慢查询语言，负载的关联表/子查询等，扫描全表的SQL，阻塞的SQL等</code></pre>
<p>内存过高</p>
<p>内存过高也可以有多个方式，比如使用top看哪个进程站内存高</p>
<p>理解free -m的参数意思</p>
<pre><code>         total       used       free     shared    buffers     cached</code></pre>
<p>Mem:          2005       1733        272         18        186        466<br>-/+ buffers/cache:       1080        924<br>Swap:          991          0        991</p>
<pre><code>Tocal1（表示总内存容量）
Used1 (系统已分配的内存) userd1 = buffers1+caced1+used2
free1 (系统未分配的内存)
shared1（共享内存）
buffers1 (系统已分配内存中，但未使用的buffers数量)
cached (系统已分配内存中，但未使用的cached数量)
used2(系统已分配的内存中，系统使用的总量)
free2(未使用系统已分配的内存，和系统未分配内存的之和) free2 = buffers1+cached1+free1</code></pre>
<p>查看占用内存最大的10个进程</p>
<p>ps -aux | sort -k4nr | head -n 10</p>
<p>Linux 释放内存, 谨慎操作</p>
<p>Linux释放内存的命令：<br>sync   #释放之前sync下，防止数据丢失<br>echo 1 &gt; /proc/sys/vm/drop_caches</p>
<p>drop_caches的值可以是0-3之间的数字，代表不同的含义：<br>0：不释放（系统默认值）<br>1：释放页缓存<br>2：释放dentries和inodes<br>3：释放所有缓存</p>
<p>释放完内存后改回去让系统重新自动分配内存。<br>echo 0 &gt;/proc/sys/vm/drop_caches</p>
<p>free -m #看内存是否已经释放掉了。</p>
<p>参考文档：</p>
<p><a target="_blank" rel="noopener" href="http://yanghongfei.me/2019/04/03/linux-load/#linuxunix---%E5%B9%B3%E6%97%B6linuxunix%E5%B8%B8%E8%A7%81%E7%9A%84%E5%90%84%E7%A7%8D%E8%B4%9F%E8%BD%BD%E9%83%BD%E6%98%AF%E6%80%8E%E4%B9%88%E5%A4%84%E7%90%86%E7%9A%84">http://yanghongfei.me/2019/04/03/linux-load/#linuxunix---%E5%B9%B3%E6%97%B6linuxunix%E5%B8%B8%E8%A7%81%E7%9A%84%E5%90%84%E7%A7%8D%E8%B4%9F%E8%BD%BD%E9%83%BD%E6%98%AF%E6%80%8E%E4%B9%88%E5%A4%84%E7%90%86%E7%9A%84</a></p>

    </div>

    
    
    
 
    <div>
      
        
<div class="my_post_copyright">
  <script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script>
  
  <!-- JS库 sweetalert 可修改路径 -->
  <script src="https://cdn.bootcss.com/jquery/2.0.0/jquery.min.js"></script>
  <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
  <p><span>本文标题:</span><a href="/blog/2019/08/15/%E6%97%A5%E5%B8%B8%E8%BF%90%E7%BB%B4%E4%B8%ADCPU%20Load%E9%AB%98%E3%80%81IO%E9%AB%98%E3%80%81%E5%88%A9%E7%94%A8%E7%8E%87%E9%AB%98%E3%80%81%E5%86%85%E5%AD%98%E9%AB%98%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88/">日常运维中CPU Load高、IO高</a></p>
  <p><span>文章作者:</span><a href="/" title="访问  的个人博客"></a></p>
  <p><span>发布时间:</span>2019年08月15日 - 00:08</p>
  <p><span>最后更新:</span>2020年08月31日 - 22:08</p>
  <p><span>原始链接:</span><a href="/blog/2019/08/15/%E6%97%A5%E5%B8%B8%E8%BF%90%E7%BB%B4%E4%B8%ADCPU%20Load%E9%AB%98%E3%80%81IO%E9%AB%98%E3%80%81%E5%88%A9%E7%94%A8%E7%8E%87%E9%AB%98%E3%80%81%E5%86%85%E5%AD%98%E9%AB%98%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88/" title="日常运维中CPU Load高、IO高">https://linzhuangrong.gitee.io/blog/2019/08/15/%E6%97%A5%E5%B8%B8%E8%BF%90%E7%BB%B4%E4%B8%ADCPU%20Load%E9%AB%98%E3%80%81IO%E9%AB%98%E3%80%81%E5%88%A9%E7%94%A8%E7%8E%87%E9%AB%98%E3%80%81%E5%86%85%E5%AD%98%E9%AB%98%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88/</a>
    <span class="copy-path"  title="点击复制文章链接"><i class="fa fa-clipboard" data-clipboard-text="https://linzhuangrong.gitee.io/blog/2019/08/15/%E6%97%A5%E5%B8%B8%E8%BF%90%E7%BB%B4%E4%B8%ADCPU%20Load%E9%AB%98%E3%80%81IO%E9%AB%98%E3%80%81%E5%88%A9%E7%94%A8%E7%8E%87%E9%AB%98%E3%80%81%E5%86%85%E5%AD%98%E9%AB%98%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88/"  aria-label="复制成功！"></i></span>
  </p>
  <p><span>许可协议:</span><i class="fa fa-creative-commons"></i> 转载请保留原文链接及作者。</p>  
</div>
<script> 
    var clipboard = new Clipboard('.fa-clipboard');
    $(".fa-clipboard").click(function(){
      clipboard.on('success', function(){
        swal({   
          title: "",   
          text: '复制成功',
          icon: "success", 
          showConfirmButton: true
          });
    });
    });  
</script>


      
    </div>

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/blog/tags/linux/" rel="tag"># linux</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/blog/2019/08/15/nc%E4%BC%A0%E8%BE%93%E6%96%87%E4%BB%B6/" rel="prev" title="nc传输文件">
      <i class="fa fa-chevron-left"></i> nc传输文件
    </a></div>
      <div class="post-nav-item">
    <a href="/blog/2019/08/15/dmesg%E6%97%A5%E5%BF%97%E4%B8%AD%E5%8A%A0%E5%85%A5%E6%97%B6%E9%97%B4%E6%88%B3/" rel="next" title="dmesg 日志加时间戳">
      dmesg 日志加时间戳 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
      </div>
      <!--/noindex-->
    
           <div>
            <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="//music.163.com/outchain/player?type=2&id=144301&auto=1&height=66"></iframe>
           </div>
   
      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">林壮荣</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/blog/archives/">
        
          <span class="site-state-item-count">20</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/blog/categories/">
          
        <span class="site-state-item-count">7</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/blog/tags/">
        <span class="site-state-item-count">3</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2023</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">林壮荣</span>
</div>
<div class="theme-info">
  <div class="powered-by"></div>
  <span class="post-count">博客全站共31.2k字</span>
</div>

<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

<div class="powered-by">
  <i class="fa fa-user-md"></i>
  <span id="busuanzi_container_site_pv">
    本站访问量:<span id="busuanzi_value_site_pv"></span>次
  </span>
  <span class="post-meta-divider">|</span>
  <span id="busuanzi_container_site_uv">
    本站总访客量：<span id="busuanzi_value_site_uv"></span>人
  </span>
</div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/blog/lib/anime.min.js"></script>
  <script src="/blog/lib/velocity/velocity.min.js"></script>
  <script src="/blog/lib/velocity/velocity.ui.min.js"></script>

<script src="/blog/js/utils.js"></script>

<script src="/blog/js/motion.js"></script>


<script src="/blog/js/schemes/pisces.js"></script>


<script src="/blog/js/next-boot.js"></script>




  




  
<script src="/blog/js/local-search.js"></script>













  

  

</body>
</html>
